if [ -n "$DISPLAY" ]; then
     BROWSER="firefox"
fi
	export PATH=$PATH:/usr/lib/surfraw
alias install="yaourt -S"      # default action     - install one or more packages
alias update="yaourt -Syua --noconfirm"   # '[u]pdate'         - upgrade all packages to their newest version
alias search="yaourt -Ss"    # '[s]earch'         - search for a package using one or more keywords
alias paci="yaourt -Si"    # '[i]nfo'           - show information about a package
alias uninstall="yaourt -R"     # '[r]emove'         - uninstall one or more packages
alias pacl="yaourt -Sl"    # '[l]ist'           - list all packages of a repository
alias pacll="yaourt -Qqm"  # '[l]ist [l]ocal'   - list all packages which were locally installed (e.g. AUR packages)
alias paclo="yaourt -Qdt"  # '[l]ist [o]rphans' - list all packages which are orphaned
alias paco="yaourt -Qo"    # '[o]wner'          - determine which package owns a given file
alias pacf="yaourt -Ql"    # '[f]iles'          - list all files installed by a given package
alias pacc="yaourt -Sc"    # '[c]lean cache'    - delete all not currently installed package files
alias pacm="makepkg -fci"  # '[m]ake'           - make package from PKGBUILD file in current directory### Added by surfraw. To remove use surfraw-update-path -remove

systemctl --user import-environment PATH

#[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
 
# Start the gpg-agent if not already running
if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
  gpg-connect-agent /bye >/dev/null 2>&1
fi
            
# Set SSH to use gpg-agent
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
  export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh"
fi
                       
# Set GPG TTY
GPG_TTY=$(tty)
export GPG_TTY
                       
# Refresh gpg-agent tty in case user switches into an X session
gpg-connect-agent updatestartuptty /bye >/dev/null
